package com.lcz.cloud_note.dao;

import java.util.List;

import com.lcz.cloud_note.entity.Share;
import org.apache.ibatis.annotations.Param;

public interface ShareDao {
	//分享功能，实际上是将分享的内容插入到share中
	public void share(Share share);
	//搜索功能
	public List<Share> findLikeTitle(@Param("title") String title,@Param("begin") int begin,@Param("end") int end);
	//查询功能
	public Share findById(String shareId);

    Share findByNoteId(String noteId);

    int dynamicUpdate(Share share);
}
